// 角色
import request from '@/utils/request'
export const getRoleList = (params) => {
  return request({
    url: '/sys/role',
    method: 'GET',
    params
  })
}
// 添加
export const addRole = (data) => {
  return request({
    url: '/sys/role',
    method: 'POST',
    data
  })
}
// 编辑
export const enitAPI = (data) => {
  return request({
    url: `/sys/role/${data.id}`,
    method: 'PUT',
    data
  })
}
// 删除
export const delRole = (id) => {
  return request({
    url: `/sys/role/${id}`,
    method: 'DELETE'
  })
}
